﻿@{
    Layout = null;
}

<script src="~/Scripts/MGJJS/CodeManage/Recall.js"></script>
<div class="mtlr15">
    <div class="row">
        @*<div class="col-lg-8 col-md-8 col-sm-8" style="padding:0">
            <button type="button" class="btn btn-success" onclick="$.MGJ.Recall.Dialog_RecallAdd()">
                经销商召回清单
            </button>
        </div>*@

        <!--
            <div class="col-lg-4 col-md-4 col-sm-4">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="请输入关联码" id="SearchKey">
                <span class="input-group-addon" onclick=" $.MGJ.LeadCode.Ajax_LeadCodePageList(1)">
                    <span class="glyphicon glyphicon-search"></span>
                </span>
            </div>
        </div>
            -->
    </div>

    <div id="Table">
        <div class="overflow">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th width="15"><input type="checkbox" class="AllClickCheckbox"></th>
                        <th>操作方式</th>
                        <th>召回批次</th>
                        <th>召回记录</th>
                        <th>召回原因</th>
                        <th>召回时间</th>
                        <th>召回状态</th>
                        <th>召回单码</th>

         
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="PageList" binding="{'pageId':'Pager','pageCallback':'$.MGJ.Recall.Ajax_GetCodeRecallDetailPageList','emptyHtml':EmptyHtml}">
                    <tr>
                        <td width="15"><input type="checkbox" name="AllClickChild" class="AllClickChild"></td>
                        <td binding="{'text':'RelateType','textHandle':$.MGJ.Recall.AllotTypeName}"></td>
                        <td binding="{'text':'CodeBatch'}" style="max-width:100px;"></td>
                        <td binding="{'text':'LogId'}"></td>
                        <td binding="{'text':'Remark'}"></td>
                        <td binding="{'text':'ChangeDate','textHandle':'datetime_Date'}"></td>
                        <td binding="{'text':'Status','textHandle':$.MGJ.Recall.Status}"></td>
                        <td binding="{'text':'WL_CodeDisable'}"></td>
    
                        <td>
                            <a binding="{'PID':'Id'}" onclick="$.MGJ.Recall.Dialog_EditObj(this)">确定</a>
                        </td>
         
    
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="Pager"></div>
    </div>
</div>

<script>

    var ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
    window.EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';

    $(function () {
        $.MGJ.Recall.Ajax_GetCodeRecallDetailPageList(1);
    });
</script>

